function [ mask ] = mask_generator( Adjacency_mat )
% creates mask to be added to distances matrix
% to use in FastFloyd

diagonal = eye(length(Adjacency_mat));

A= (Adjacency_mat - diagonal.* Adjacency_mat) + eye(length(Adjacency_mat));

mask = 1./A - 1;

end

